package net.wofly.cashier.room.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 房间
 *
 * @author lign
 * @version 1.0
 * @created 17-10月-2017 21:56:25
 */
@Data
@Entity
@Table(name = "cashier_room_room")
@ApiModel(description = "房间信息")
public class Room {

    /**
     * 房间唯一标识
     */
    @Id
    private String roomID;
    private Long modifyDate;
    /**
     * 房间编号。手工维护
     */
    @ApiModelProperty(value = "房间编号,手工维护", required = true)
    private String roomCode;
    /**
     * 房间名称
     */
    @ApiModelProperty(value = "房间名称", required = true)
    private String roomName;
    /**
     * 房间类型
     */
    @ApiModelProperty(value = "房间类型(1:大堂; 2:包间;)", required = true, allowableValues = "1,2")
    private Integer roomType;

    @Transient
    private String roomTypeStr;
    /**
     * 状态
     * 1为有效
     * 0为无效
     */
    @ApiModelProperty(value = "状态(1为有效,0为无效；新增默认有效)", required = true, allowableValues = "1,0")
    private Integer status = 1;

    @Transient
    private String statusStr;

    public Room() {

    }

    @Override
    public void finalize() throws Throwable {

    }
}